package eip.chapter8.expiration.impl;

import org.apache.axiom.om.OMElement;
import org.apache.log4j.Logger;

public class ExpiredMessageListenerWebserviceFacade {

	private final static Logger LOG = Logger.getLogger(ExpiredMessageListenerWebserviceFacade.class);
	private ExpiredMessageListenerImpl messageListener = new ExpiredMessageListenerImpl();
	
	public void processExpiredMessages(OMElement element) {
		LOG.info("Message received by the ExpiredMessageListenerWebserviceFacade");
		messageListener.processExpiredMessage("Expired message recieved");
	}
}
